﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using HISDAL;
using HISModel;
namespace HISBLL
{
    public class OfficeBll
    {
        //添加科室信息
        public int AddOffice(T_Office m)
        {
            return new OfficeDal().AddOffice(m);
        }

        //获取科室信息
        public List<T_Office> SelectOff(string name)
        {
            return new OfficeDal().SelectOff(name);
        }
        //删除科室信息
        public int DelOffice(int id)
        {
            return new OfficeDal().DelOffice(id);
        }
        /// <summary>
        /// 科室分页查询
        /// </summary>
        /// <param name="id">单挑查询的医院ID值</param>
        /// <returns></returns>
        public T_Officeuserinfos<T_Office> T_Officefenye(int pageindex, int pagesize, string Office_ID, string T_Office)
        {
            return new HISDAL.OfficeDal().T_Officefenye(pageindex, pagesize, Office_ID, T_Office);
        }
    }
}
